{* registration form *}
<p class="welcome">Добро пожаловать!</p>
<h1 style="margin-left: 320px">Регистрация</h1>

{if $order ne NULL}
	<p>{"checkout_continue_tip"|translate}</p>
{/if}

{*
@features "Trial product"
*}
	{if $overflowCustomers}
        <div class="error_msg_f">{$smarty.const.TRIAL_STRING_CUSTOMERS_OVERFLOW|replace:'[NUM]':$smarty.const.TRIAL_MAX_CUSTOMERS_NUM}</div>
        <p>{$smarty.const.TRIAL_STRING_LIMITATIONS}</p>
	{/if}
{*
@features
*}

<!--<p style="margin-left: 320px">{"usrreg_required_regform_fields_descr"|translate}</p>-->

<p style="text-align: center">{$MessageBlock}</p>
<br />
<form action="{''|set_query_html}" method="post" name="RegisterForm"><div class="form_wrapper">
	<input type="hidden" name="action" value="save">

    <div class="admin_form">
        <!--<table id="reg_fields_tbl" cellpadding="0" cellspacing="0">-->
        <!-- STRING AUTHORIZATION FIELDS (LOGIN, PASSWORD) -->

        <dl class="row_{cycle values='odd,even'}">
            <dt>
                {*
                @features "Affiliate program"
                *}
                {if $SessionRefererLogin || $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED eq 0}
                <input name="affiliationLogin" type="hidden" value="{$SessionRefererLogin|escape:'html'}" >
                {/if}
                {*
                @features
                *}
                <span class="asterisk">*</span>{"usr_custinfo_first_name"|translate}
            </dt>
            <dd><input type="text" name="first_name" value="{$first_name|escape:'html'}" ></dd>
        </dl>





    <dl>
        <dt><span class="asterisk">*</span>{"usr_custinfo_login"|translate}</dt>
        <dd><input type="text" name="login" value="{$login|escape:'html'}" ></dd>
    </dl>
    <dl>
        <dt><span class="asterisk">*</span>{"usr_custinfo_password"|translate}</dt>
        <dd><input type="password" name="cust_password1" value="{$cust_password1|escape:'html'}" ></dd>
    </dl>
    <!--    <dl>
            <dt><span class="asterisk">*</span>{"usrreg_customer_confirm_password"|translate}</dt>
            <dd><input type="password" name="cust_password2" value="{$cust_password2|escape:'html'}" ></dd>
        </dl>-->




        <!-- GENERAL INFORMATION (LAST NAME, EMAIL ) -->

        <dl class="row_{cycle values='odd,even'}">
            <dt><span class="asterisk">*</span>{"usr_custinfo_email"|translate}</dt>
            <dd><input type="text" name="email" value="{$email|escape:'html'}"></dd>
        </dl>

<!--        <dl class="row_{cycle values='odd,even'}">
            <dt><span class="asterisk">*</span>{"usr_custinfo_last_name"|translate}</dt>
            <dd><input type="text" name="last_name" value="{$last_name|escape:'html'}" ></dd>
        </dl>-->


        {include file="address_form.html" name_space="address" address=$address intable=0 asknames=0 form_name="RegisterForm" ukey="register"}
        {if $smarty.const.CONF_ENABLE_CONFIRMATION_CODE}

        <!-- ADDITIONAL FIELDS (SEE  admin.php?dpt=custord&sub=reg_fields URL) -->
        {section name=i loop=$additional_fields}
            {assign var=__key value="additional_field_`$additional_fields[i].reg_field_ID`"}
            <dl class="row_{cycle values='odd,even'}">
                <dt>
                    {if $additional_fields[i].reg_field_required}<span class="asterisk">*</span>{/if}
                    {$additional_fields[i].reg_field_name|escape:'html'}
                </dt>
                <dd>
                    <input type='text' name='additional_field_{$additional_fields[i].reg_field_ID}' value='{$post_data[$__key]|escape:'html'}' >
                </dd>
            </dl>
        {/section}

        <dl class="row_{cycle values='odd,even'}">
            <dt align="right"><input type="checkbox" id="subscribed4news" value="1" name="subscribed4news" style="display: none"></dt>
            <dd><label for="subscribed4news"></label></dd>
        </dl>

        <!-- ADDRESS (COUNTRY, AREA(STATE), INDEX, CITY, ADDRESS) -->

<!--        <dl><dt colspan="2">&nbsp;</dt></dl>


        <dl>
            <dt colspan="2">{"str_enter_ccode"|translate}</dt>
        </dl>
        <dl>
            <dt align="right">
                <img src="{$smarty.const.URL_ROOT}/imgval.php" alt="code" border="0">
            </dt>
            <dd align="left">
                <input name="fConfirmationCode" value="" type="text" >
            </dd>
        </dl>-->

        {/if}
        {*
        @features "Affiliate program"
        *}
            {if !$SessionRefererLogin && $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED eq 1}

                <dl>
                    <dt colspan="2">&nbsp;</dt>
                </dl>
                <dl class="row_{cycle values='odd,even'}">
                    <dt style="font-size: 90%;">{"usr_custinfo_referrer"|translate}</dt>
                    <dd><input type="text" name="affiliationLogin" value="{$affiliationLogin|escape:'html'}" style="width: 100px;" ></dd>
                </dl>

            {/if}
        {*
        @features
        *}
        <!--</table>-->
    </div>

    <div class="admin_form"><div class="submit"><input type="submit" value="Зарегистрироваться" name="save" class="reg" ></div></div>
</div>
</form>


{if $reg_updating && $log != $smarty.const.ADMIN_LOGIN}
<p>[ <a class=bold href="javascript:confirmUnsubscribe();">{"lnk_terminate_account"|translate}</a> ]</p>
{/if}